package com.pocket.insight.base.sql.context;

import com.alibaba.ttl.TransmittableThreadLocal;

/**
 * 描述：
 *
 * @author shuize
 * @create 2024/12/14
 */
public class ChartSampleContext {
    private static TransmittableThreadLocal<Boolean> enableSample = new TransmittableThreadLocal();

    public ChartSampleContext() {
    }

    public static Boolean getSample() {
        return (Boolean)enableSample.get();
    }

    public static void enableSample() {
        enableSample.set(true);
    }

    public static void remove() {
        enableSample.remove();
    }
}
